<?php
namespace Service;

class Finance extends Base
{

    public function bankQuery($cardNo, $cardBinCheck = 'true')
    {
        $config = getConfig('finance', 'bank');
        $queryUrl = $config['query_url'];
        $url = "{$queryUrl}?cardNo={$cardNo}&cardBinCheck={$cardBinCheck}";
        $result = sendGetByCurl($url);
        $result = json_decode($result, true);
        return $result;
    }

}